package com.mike.employment.po;

import java.sql.Date;

import com.mike.employment.base.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
public class Recruit extends BaseEntity{
	@Column(nullable = false)
	private String title; //标题
	@Column(nullable = false)
	private String job; //岗位
	@Column(nullable = false)
	private Integer nums; //招聘人数
	@Column(nullable = false)
	private Double salary = 2000.0; //薪资
	@Column(nullable = false)
	private Date endDate; //招聘截至日期
	@Column(columnDefinition = "longtext", nullable = false)
	private String content; // 招聘内容
	@Column(nullable = false)
	private Integer status = 0; //状态  0：审核中  1：审核通过
	@ManyToOne(targetEntity=Account.class)
	@JoinColumn(name="account_id",referencedColumnName="id")
	private Account creater;  // 创建人
}
